/*
 * Dbuf.h
 *
 *  Created on: Mar 2, 2011
 *      Author: ramble
 */

#ifndef DBUF_H_
#define DBUF_H_


#include <io.h>
#include "windows.h"

#include <fcntl.h>

#include "mmsystem.h"

#define MAXBUFSIZE 1024

class CDBuf
{
public:
	CDBuf();
	virtual ~CDBuf();
	bool PushData(unsigned char * data,long size);
	bool GetData(unsigned char * data,long &size);
public:
	unsigned char buf1[MAXBUFSIZE];
	unsigned char buf2[MAXBUFSIZE];
	int buf1state;
	int buf2state;
	int freshtag;
};
#endif /* DBUF_H_ */
